package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.ValueAddedOrderFollowerMapper;
import com.ruoyi.yipaiju.domain.ValueAddedOrderFollower;
import com.ruoyi.yipaiju.service.IValueAddedOrderFollowerService;

/**
 * fo_value_added_order_followerService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class ValueAddedOrderFollowerServiceImpl implements IValueAddedOrderFollowerService 
{
    @Autowired
    private ValueAddedOrderFollowerMapper valueAddedOrderFollowerMapper;

    /**
     * 查询fo_value_added_order_follower
     * 
     * @param id fo_value_added_order_follower主键
     * @return fo_value_added_order_follower
     */
    @Override
    public ValueAddedOrderFollower selectValueAddedOrderFollowerById(Long id)
    {
        return valueAddedOrderFollowerMapper.selectValueAddedOrderFollowerById(id);
    }

    /**
     * 查询fo_value_added_order_follower列表
     * 
     * @param valueAddedOrderFollower fo_value_added_order_follower
     * @return fo_value_added_order_follower
     */
    @Override
    public List<ValueAddedOrderFollower> selectValueAddedOrderFollowerList(ValueAddedOrderFollower valueAddedOrderFollower)
    {
        return valueAddedOrderFollowerMapper.selectValueAddedOrderFollowerList(valueAddedOrderFollower);
    }

    /**
     * 根据业务主键查询一条记录：fo_value_added_order_follower
     *
     * @param valueAddedOrderFollower fo_value_added_order_follower
     * @return fo_value_added_order_follower
     */
    @Override
    public ValueAddedOrderFollower selectOneValueAddedOrderFollower(ValueAddedOrderFollower valueAddedOrderFollower)
    {
        return valueAddedOrderFollowerMapper.selectOneValueAddedOrderFollower(valueAddedOrderFollower);
    }

    /**
     * 新增fo_value_added_order_follower
     * 
     * @param valueAddedOrderFollower fo_value_added_order_follower
     * @return 结果
     */
    @Override
    public int insertValueAddedOrderFollower(ValueAddedOrderFollower valueAddedOrderFollower)
    {
        valueAddedOrderFollower.setCreateTime(DateUtils.getNowDate());
        return valueAddedOrderFollowerMapper.insertValueAddedOrderFollower(valueAddedOrderFollower);
    }

    /**
     * 修改fo_value_added_order_follower
     * 
     * @param valueAddedOrderFollower fo_value_added_order_follower
     * @return 结果
     */
    @Override
    public int updateValueAddedOrderFollower(ValueAddedOrderFollower valueAddedOrderFollower)
    {
        valueAddedOrderFollower.setUpdateTime(DateUtils.getNowDate());
        return valueAddedOrderFollowerMapper.updateValueAddedOrderFollower(valueAddedOrderFollower);
    }

    @Override
    public int updateValueAddedOrderFollowerCondition(ValueAddedOrderFollower valueAddedOrderFollower, ValueAddedOrderFollower valueAddedOrderFollowerCondition)
    {
                valueAddedOrderFollower.setUpdateTime(DateUtils.getNowDate());
        return valueAddedOrderFollowerMapper.updateValueAddedOrderFollowerCondition(valueAddedOrderFollower, valueAddedOrderFollowerCondition);
    }

    /**
     * 批量删除fo_value_added_order_follower
     * 
     * @param ids 需要删除的fo_value_added_order_follower主键
     * @return 结果
     */
    @Override
    public int deleteValueAddedOrderFollowerByIds(Long[] ids)
    {
        return valueAddedOrderFollowerMapper.deleteValueAddedOrderFollowerByIds(ids);
    }

    /**
     * 删除fo_value_added_order_follower信息
     * 
     * @param id fo_value_added_order_follower主键
     * @return 结果
     */
    @Override
    public int deleteValueAddedOrderFollowerById(Long id)
    {
        return valueAddedOrderFollowerMapper.deleteValueAddedOrderFollowerById(id);
    }

    /**
     * 条件删除fo_value_added_order_follower
     *
     * @param valueAddedOrderFollower fo_value_added_order_follower
     * @return 结果
     */
    @Override
    public int deleteValueAddedOrderFollowerByCondition(ValueAddedOrderFollower valueAddedOrderFollower)
    {
        return valueAddedOrderFollowerMapper.deleteValueAddedOrderFollowerByCondition(valueAddedOrderFollower);
    }

}
